package com.yboot.module.system.service.impl;

import com.yboot.module.system.mapper.SysUserRoleMapper;
import com.yboot.module.system.model.dto.SysRoleDto;
import com.yboot.module.system.model.vo.SysRoleVo;
import com.yboot.module.system.model.vo.SysRoleDetailVo;
import com.yboot.module.system.model.query.SysRoleQuery;
import com.yboot.module.system.model.entity.SysRoleEntity;
import com.yboot.module.system.service.ISysRoleService;
import com.yboot.module.system.mapper.SysRoleMapper;
import com.yboot.starter.mybatis.core.base.service.BaseServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Set;

/**
 * 角色表
 * @author yangcs
 * @date 2025-08-29
 */
@Service
@RequiredArgsConstructor
public class SysRoleServiceImpl extends BaseServiceImpl<SysRoleMapper, SysRoleEntity, SysRoleVo, SysRoleDetailVo, SysRoleQuery, SysRoleDto> implements ISysRoleService {

    private final SysUserRoleMapper sysUserRoleMapper;

    @Override
    public List<SysRoleVo> getRoleList(String userId) {
        return sysUserRoleMapper.selectRoleList(userId);
    }
}
